package com.atguigu.atcrowdfunding.manager.service;

import com.atguigu.atcrowdfunding.bean.Permission;

import java.util.List;

/**
 * @author xzt
 * @create 2021-02-23 9:30
 */
public interface PermissionService {
    Permission getRootPermission();

    List<Permission> getChildrenPermissionByPid(Integer id);

    List<Permission> queryAllPermission();

    int savePermission(Permission permission);

    Permission getChildrenPermissionById(Integer id);

    int UpdatePermission(Permission permission);

    int deletePermissionById(Integer id);

    List<Integer> queryPermissionByRoleid(Integer roleId);
}
